package com.ionehe.group.common.file.ex.service;


import com.ionehe.group.common.file.ex.repository.dataobject.UserFolder;
import com.ionehe.group.common.io.Response;

import java.util.List;

/**
 * @author 2022/1/14 <a href="mailto:a@ionehe.com">xiu</a>
 */
public interface UserFolderService {
    Response<Long> createFolder(UserFolder userFolder);

    Response<Boolean> updateFolder(UserFolder userFolder);

    Response<Boolean> moveFolder(Long folderId, Long newPid);

    Response<Boolean> deleteFolder(Long folderId);

    Response<UserFolder> findById(Long folderId);


    Response<List<UserFolder>> findByCreatBy(Long userId);
}